#pragma once
#include <string>
#include <sstream>
#include <iostream>
#include <iomanip>

using namespace std;

namespace frost
{
	/** \brief Klass f&ouml;r po&auml;ng
	*
	*/
	class HighScore
	{
	public:
		HighScore(void);
		~HighScore(void);
		void SetName(string name){this->name = name;}
		void SetPoints(int points){this->points = points;}
		string GetName(){return name;}
		int GetPoints(){return points;}
		string Write();
		bool operator<(HighScore &hsl);
		friend ostream &operator<<(ostream &out, HighScore &hs)
		{
			out << hs.name << "," << hs.points << endl;
			return out;
		}

		friend istream &operator>>(istream &in, HighScore &hs);
	private:
		string name;
		int points;
	};

}
